package com.wanmait.meteor.controller;

import com.wanmait.meteor.pojo.MeetLevel;
import com.wanmait.meteor.service.MeetLevelService;
import com.wanmait.meteor.util.IgnoreToken;
import com.wanmait.meteor.util.Result;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@IgnoreToken
@RestController
@CrossOrigin
public class MeetLevelController {
    @Resource
    private MeetLevelService meetLevelService;


    //wf 通过会议类型查询会议等级
    @RequestMapping("/web/selectLevelByMeetId")
    public Result selectLevelByMeetId(Integer meetId){
        List<MeetLevel> meetLevels= meetLevelService.selectLevelByMeetId(meetId);
        return Result.success(meetLevels);

    }
}
